﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    Codebehind="NetApplySearch.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.Apply.NetApplySearch"
    Title="医用耗材管理系统" %>

<%@ Register Assembly="Meta.Web" Namespace="Meta.Web.Controls" TagPrefix="mc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">

    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../../js/jquery.flexselect.js" type="text/javascript"></script>

    <script src="../../js/liquidmetal.js" type="text/javascript"></script>

    <script src="../../js/popup.js" type="text/javascript"></script>
    
    <script language="javascript" type="text/javascript" src="../../Public/My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">
      $(document).ready(function() {
        $("select[class*=flexselect]").flexselect();
        
        
        //获取供应商文本
        $('#ctl00_cphcenter_ddlSupply_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlSupply_flexselect').attr('value');
        $('#ctl00_cphcenter_hdfSupply').attr('value',tt);
        })
        

        
        /*测试COOKIES*/
        if($.cookie('popupStatus')==1)
        {
            disablePopup();
            centerPopup();
            loadPopup();
        }
        //写Cookies
        $('#wCookies').click(function(){
		$.cookie('name', 'test11213',{expires: 7});				  
		});
		//读Cookies
		$('#rCookies').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		
		$('#rCookies1').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		//删除
		$('#dCookies').click(function(){
		$.cookie('popupStatus', '0',{expires: 7});							  
		});
		
      });




    </script>

<table cellspacing="0" cellpadding="0" width="100%"  border="0">
            <tr>
                <td class="right-color">
                    网上请领—请领记录</td>
            </tr>
            <tr>
                <td>&nbsp;
                </td>
            </tr>
            </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="t1">
                        <tbody>
                            <tr>
                                <td colspan="7" class="bor bor-bg">
                                    请领查询条件</td>
                            </tr>
                            <tr>
                                <td style="width: 82px" align="right">
                                    请领时间：</td>
                                <td style="width: 152px">
                                    
                                    
                                    <input id="input_date_ahead" type="text" onClick="WdatePicker()" runat="server" style="width: 160px"/>
                                </td>
                                <td style="width: 84px" align="center">
                                    至</td>
                                <td style="width: 93px">
                              
                                    <input id="input_date_down" type="text" onClick="WdatePicker()" runat="server" style="width: 140px"/>
                                    </td>
                                    <td></td>
                            </tr>
                            <tr>
                                <td  align="right">
                                    产品名称：</td>
                                <td style="width: 152px">
                                    <asp:DropDownList ID="ddlExp_Name" runat="server" AutoPostBack="true" CssClass="flexselect" Width="160">
                                    </asp:DropDownList>
                                    <div style="display: none">
                                        <asp:TextBox ID="TxtExpName" runat="server" OnTextChanged="TxtExpName_TextChanged" AutoPostBack="True" Width="150"></asp:TextBox></div>
                                </td>
                                <td align="right">
                                    规格型号：</td>
                                <td style="width: 93px">
                                    <asp:DropDownList ID="ddlSpecs" runat="server" Width="150">
                                    </asp:DropDownList></td>
                                <td>
                                    </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    请领状态：</td>
                                <td style="width: 152px">
                                    <asp:DropDownList ID="ddlApplyStatus" runat="server">
                                    </asp:DropDownList></td>
                                <td align="right">
                                </td>
                                <td style="width: 93px">
                                </td>
                                <td>
                                    <asp:Button ID="txtSearch" runat="server" Text="查询" OnClick="txtSearch_Click" CssClass="button" Width="57" Height="25" /></td>
                            </tr>
                        </tbody>
                    </table>
               
                    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin-top:14px;">
                            <tr>
                                <td style="height: 18px" class="bor bor-bg">
                                    请领单明细</td>
                            </tr>
                            <tr>
                                <td class="bor" style="padding:13px;"><asp:GridView ID="grvApplyDetail" runat="server" AutoGenerateColumns="False" DataKeyNames="bill_id"
                                        OnRowCommand="grvApplyDetail_RowCommand" OnRowDataBound="grvApplyDetail_RowDataBound"
                                        Width="100%" AllowPaging="True" OnPageIndexChanging="grvApplyDetail_PageIndexChanging" OnSelectedIndexChanged="grvApplyDetail_SelectedIndexChanged">
                                        <Columns>
                                            <asp:BoundField DataField="bill_id" HeaderText="请领单号" />
                                            <asp:BoundField DataField="APPLY_DATE" HeaderText="请领时间" />
                                            <asp:BoundField DataField="dept_code" HeaderText="请领科室" />
                                            <asp:BoundField DataField="applier" HeaderText="请领人" />
                                            <asp:BoundField DataField="status" HeaderText="状态" />
                                            <asp:ButtonField ButtonType="Button" Text="详细" CommandName="detail" >
                                                <ControlStyle CssClass="button" />
                                            </asp:ButtonField>
                                        </Columns>
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                      <RowStyle CssClass="gv-first-line"/>
                                      <PagerStyle CssClass="fy" />
                                      <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                      <HeaderStyle  CssClass="gv-head" />
                                      <EditRowStyle BackColor="#2461BF" />
                                      <AlternatingRowStyle BackColor="White" />
                                      <PagerSettings Mode="NumericFirstLast" FirstPageText="首页" LastPageText="末页"/>
                                    </asp:GridView></td>
                            </tr>
                            <tr>
                                <td style="height: 19px">
                                    &nbsp;
                                </td>
                            </tr>
                        
                    </table>
              
            <%--<tr>
                <td>
                    &nbsp;<asp:Button ID="btnCancel" runat="server" Text="清空" CssClass="button" Width="57" Height="25" ></asp:Button>
                    &nbsp; &nbsp;&nbsp;<br />
                    &nbsp;&nbsp;
                </td>
            </tr>--%>
       
</asp:Content>
